using System;
using System.Xml;
using MCMLXVII.Core.Common;
using MCMLXVII.BackEnd.Services.Common.Messages;
using System.ServiceModel;

namespace MCMLXVII.BackEnd.Services.SessionManagement.BusinessActions
{
	/// <summary>
	/// Summary description for PublicKey.
	/// </summary>
	public class PublicKey
	{
		public PublicKey()
		{
		}
		public msgXMLResponse GetPublicKey(msgVoidRequest Request)
		{
            XmlDocument xdoc = new XmlDocument();
            try
            {
                xdoc.Load("PublicKey.xml");
                return new msgXMLResponse(xdoc);
            }
            catch (Exception ex)
            {
                throw new FaultException<BackendFault>(new BackendFault(BackendFaulType.Technical, Properties.Resources.UnableToLoadPK, ex.Message ));
            }

        }
	}
}
